<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>

<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<jsp:include page="/core/tool/resources.jsp"></jsp:include>
	<script src="./job.js"></script>
</head>

<body>
	<div id="toolbar">
		   <a class="easyui-linkbutton" iconCls="icon-add" onclick="$('#dg').edatagrid('addRow')">新增</a>
		   <a class="easyui-linkbutton" iconCls="icon-reload" onclick="$('#dg').edatagrid('reload')">刷新</a>
	       <a class="easyui-linkbutton" iconCls="icon-remove" onclick="$('#dg').edatagrid('destroyRow')">删除</a>
	       <a class="easyui-linkbutton" iconCls="icon-undo" onclick="$('#dg').edatagrid('cancelRow')">取消</a>
	       <a class="easyui-linkbutton" iconCls="icon-save" onclick="$('#dg').edatagrid('saveRow')">保存</a>
	</div>
	<table id="dg"  class="easyui-edatagrid"
            data-options="rownumbers:true, singleSelect:true, pagination:true, pageSize:20, fit:true, toolbar:'#toolbar',
           	 		sortOrder:'asc', sortName:'jobCode', fitColumns:false,  editing:true,
           	 		url:'./jobpage.json',
           	 		updateUrl:'./jobsave.json', 
           	 		saveUrl:'./jobsave.json', 
           	 		destroyUrl:'./jobdelete.json'
           	 		">
        <thead>
            <tr>
           	 	<th data-options="field:'jobCode', sortable:true, editor:'textbox'">任务编码</th>
           	 	<th data-options="field:'jobName', editor:'textbox'">任务名</th>
                <th data-options="field:'jobClass', editor:'textbox'">类名</th>
                <th data-options="field:'cron', editor:'textbox'">cron表达式</th>
                <th data-options="field:'intervalMinute', editor:'numberbox'">触发间隔(m)</th>
                <th data-options="field:'isOpen', editor:{type:'combobox',options:{flexset:'BASE_TRUEFALSE'}} ">是否开启</th>
                <th data-options="field:'rowEdit',width:100, formconfig:{type:'linkbutton',onclick:'click_row_trigger()',options:{iconCls:'icon-edit',text:'触发'}}">操作</th>
            </tr>
        </thead>
    </table>
  
</body>
</html>